package com.minhua.jijiehao2.mainframe.launcher.finalforgetpasswordactivity.impl

import com.minhua.jijiehao2.bean.BaseBean
import com.minhua.jijiehao2.http.*
import com.minhua.jijiehao2.mainframe.launcher.finalforgetpasswordactivity.imp.IFinalForgetPasswordModel

class FinalForgetPasswordModel : IFinalForgetPasswordModel {
    override fun updatePassword(map: ParamsMap, callback: CallBack<Any>) {
        HttpController<Any>().doHttp(
                ApiClient.getInstance().api.findLoginPwd(map.toRequestBody()),
                object : BaseSubscriber<Any>() {
                    override fun dealData(t: BaseBean<Any>) {
                        super.dealData(t)
                        callback.onSuccess(t)
                    }
                }
        )
    }
}